﻿/**
 * ...
 * @author aboutwhat
 */

package bloom.lang;




class TypeTools 
{

    
    public static inline function type <T>(s : T) 
    {
        return Type.getClass(s);
    }
    
    public static inline function as <T,D>(s : T, castTo : D) : D
    {
        return cast s;
    }
    
    public static inline function is <T,D>(s : T, cl : D) : Bool
    {
        return Std.is(s, cl);
    }
    
    public static inline function toString ( f : Float) : String 
    {
        return Std.string(f);
    }
    
   
    
    
}